<?php
$conn=mysql_connect("localhost","root","123456");
mysql_select_db("newsdb637",$conn);
mysql_query("set names ‘utf8'");
$result=mysql_query("Select * from lyb",$conn);
$row=mysql_fetch_assoc($result); 
echo $row['title']; 
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
</body>
</html>